import Vue from "vue"

export default {
    // 开启命名空间
      namespaced: true,
        state:()=>({
            username:JSON.parse(uni.getStorageSync("username") || ""),
            password:JSON.parse(uni.getStorageSync("password") || ""),
        }),
      mutations:{
        savausername(state){
        //    uni.setStorageSync("address",JSON.stringify(state.address)) 
        Vue.setStorageSync("username",JSON.stringify(state.username))
         },
         savapassword(state){
            //    uni.setStorageSync("address",JSON.stringify(state.address)) 
            Vue.setStorageSync("password",JSON.stringify(state.password))
             },
      },
    },
      getters:{
       
      
  }
  